<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0032)http://localhost:8080/HouseRent/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>郑州租房 - 用户登录</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<LINK rel=stylesheet type=text/css href="${basePath }css/style.css">
<script type="text/javascript" language="javascript"
	src="${basePath }scripts/function.js"></script>
<script type="text/javascript" language="javascript"
	src="${basePath }scripts/jquery-3.1.1.js"></script>
<META name=GENERATOR content="MSHTML 8.00.7601.17514">
<script type="text/javascript">
	function change() {
		var username = $("#user_name").val();
		var pwd = $("#user_password").val();
		var code = $("#veryCode").val();
		if (username == "") {
			errMsg = "用户名不能为空!";
			$("#error")[0].innerHTML = errMsg;
			return false;
		}
		if (pwd == "") {
			errMsg = "密码不能为空!";
			$("#error")[0].innerHTML = errMsg;
			return false;
		}
		if (code == "") {
			errMsg = "验证码不能为空!";
			$("#error")[0].innerHTML = errMsg;
			return false;
		}
		return true;
	}
	function changeCode(){
		$("#safeCode").attr("src", "images/Number.jsp?id=" + Math.random());
	}
</script>
</HEAD>
<BODY>
	<DIV id=header class=wrap>
		<DIV id=logo>
			<IMG src="${basePath }images/logo.gif">
		</DIV>
	</DIV>
	<DIV id=regLogin class=wrap>
		<DIV class=dialog>
			<DIV class=box>
				<H4>用户登录</H4>
				<FORM id=user method=post name=user action="LoginServlet"
					onsubmit="return change()">
					<DIV class=infos>
						<TABLE class=field>
							<TBODY>
								<TR>
									<TD style="text-indent: 120px; color: red;" colSpan=2
										id="error">${error!"" }</TD>
								</TR>
								<TR>
									<TD class=field>用 户 名：</TD>
									<TD>
										<!-- <input type="text" class="text" name="name" /> --> <INPUT
										id=user_name class=text type=text name=name
										value="${username!''}">
									</TD>
								</TR>
								<TR>
									<TD class=field>密 码：</TD>
									<TD>
										<!-- <input type="password" class="text" name="password" /> -->
										<INPUT id=user_password class=text type=password name=password>
									</TD>
								</TR>
								*
								<!-- 	<TR>
								<IMG src="Number.jsp" id=safeCode ><A id=changeCode href="javascript:void(0);">看不清，换一张</A><BR>
		                        <INPUT type=text name=code id=code>
							</TR> -->
								<tr>
									<td class="field">验 证 码：</td>
									<td><input type="text" class="text verycode"
										name="veryCode" id="veryCode" /><IMG src="images/Number.jsp"
										id="safeCode"><A id="changeCode" onclick="changeCode()"
										href="javascript:void(0);">看不清，换一张</A></td>
								</tr>

							</TBODY>
						</TABLE>
						<DIV class=buttons>
							<INPUT value=登陆 type=submit> <INPUT
								onclick='document.location="RegistServlet"' value=注册 type=button>
						</DIV>
					</DIV>
				</FORM>
			</DIV>
		</DIV>
	</DIV>
	<DIV id=footer class=wrap>
		<DL>
			<DT>郑州租房 © 2010 云和学院 京ICP证1000001号</DT>
			<DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
		</DL>
	</DIV>
</BODY>
</HTML>
